<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="./vue.js"></script>
    <title>Document</title>
  </head>
  <body>
    <div id="app" class="app">
      <div v-for="item in list">{{item.name}}---{{item.desc}}</div>
    </div>

    <script>
      Vue.config.productionTip = false; //阻止vue启动时生成的生产提示
      const vm = new Vue({
        el: ".app", //他喵的这个就是选择器querySelector
        data: {
          list: [
            { name: "奇成", desc: "10年php经验" },
            { name: "子杰", desc: "20年前端经验" },
            { name: "鹏程", desc: "两年半练习生" },
            { name: "alex", desc: "唱跳rap" },
          ],
        },
        methods: {},
      });
    </script>
  </body>
</html>
